import request from '@/utils/request'

// 查询业务列表
export function listLcBusiness(query) {
  return request({
    url: '/index/lcBusiness/list',
    method: 'get',
    params: query
  })
}

// 查询业务详细
export function getLcBusiness(id) {
  return request({
    url: '/index/lcBusiness/' + id,
    method: 'get'
  })
}

// 新增业务
export function addLcBusiness(data) {
  return request({
    url: '/index/lcBusiness',
    method: 'post',
    data: data
  })
}

// 修改业务
export function updateLcBusiness(data) {
  return request({
    url: '/index/lcBusiness',
    method: 'put',
    data: data
  })
}

// 删除业务
export function delLcBusiness(id) {
  return request({
    url: '/index/lcBusiness/' + id,
    method: 'delete'
  })
}
